<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form th:action="@{/empAdd}" method="post" enctype="multipart/form-data">

        员工名：<input type="text" name="name" ><br>

        照片：<input type="file" name="photo" ><br>

        工资：<input type="text" name="salary" oninput="value=value.replace(/[^\d]/g,'')"><br>

        年龄：<input type="text" name="age" oninput="value=value.replace(/[^\d]/g,'')"><br>

        <input type="submit" name="" value="提交" >

    </form>

</body>
</html>